package com.yanchi.bridge;

public class Test {
    public static void main(String[] args) {

        // 苹果笔记本电脑
        Computer computer1 = new LapTop(new Apple());

        // 联想台式电脑
        Computer computer2 = new DeskTop(new Lenovo());

        computer1.info();
        computer2.info();

    }
}
